﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="TEST" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" AutoGenerateColumns="False"
            OnRowCommand="GridView1_RowCommand" AllowSorting="True">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkClient_ID" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ID" HeaderText="ID" />
                <asp:BoundField DataField="Name" HeaderText="姓名" />
                <asp:BoundField DataField="TeleNum" HeaderText="电话号码" />
                <asp:BoundField DataField="Mobile" HeaderText="手机" />
                <asp:BoundField DataField="Fax" HeaderText="传真" />
                <asp:BoundField DataField="Address" HeaderText="地址" />
                <asp:BoundField DataField="PostCode" HeaderText="邮编" />
                <asp:BoundField DataField="Prov" HeaderText="省份" />
                <asp:BoundField DataField="City" HeaderText="城市" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton" Text="选择" runat="server" CommandName="Choose"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div>
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
        <asp:Panel ID="Panel1" runat="server">
            <asp:Label ID="Label1" runat="server" Text="姓名"></asp:Label>
            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="TeleNum" runat="server" Text="电话号码"></asp:Label>
            <asp:TextBox ID="txtTeleNum" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="手机"></asp:Label>
            <asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="PostCode" runat="server" Text="传真"></asp:Label>
            <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label4" runat="server" Text="地址"></asp:Label>
            <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="邮编"></asp:Label>
            <asp:TextBox ID="txtPostCode" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label6" runat="server" Text="省份"></asp:Label>
            <asp:TextBox ID="txtProv" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label5" runat="server" Text="城市"></asp:Label>
            <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="btnChg" runat="server" Text="修改" OnClick="btnChg_Click" />
            <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
        </asp:Panel>
    </div>
    </form>
</body>
</html>
